package TimeSqueeze.logic;
import TimeSqueeze.common.*;
import TimeSqueeze.storage.TempStorage;

// By James Ho

public class AddUntimedCommand implements CommandInterface {
	
	public TaskInterface parameters;
	public String commandType;

	public AddUntimedCommand(Task paras) {
		commandType = "add";
		parameters = paras;
	}
	
	public AddUntimedCommand(TaskInterface paras) {
		commandType = "add";
		parameters = paras;
	}

	@Override
	public void execute() {
		// TODO Auto-generated method stub
		TempStorage.addToUntimed(parameters);
		TempStorage.updateFile();
		//System.out.println(/*parameters.getDescription() + " " + parameters.getPriority() + " " + parameters.getTag() + " "*/  " added");

	}

	@Override
	public void undo() {
		// TODO Auto-generated method stub

	}

}
